package com.opal.jx.service.impl;

import com.opal.jx.entity.table.JxAssessBzcjZg;
import com.opal.jx.mapper.mysql.JxAssessBzcjZgMapper;
import com.opal.jx.service.JxAssessBzcjZgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.Year;

@Service
public class JxAssessBzcjZgServiceImpl implements JxAssessBzcjZgService {
    @Autowired
    private JxAssessBzcjZgMapper jxAssessBzcjZgMapper;

    @Override
    public Integer insert(JxAssessBzcjZg jxAssessBzcjZg) {
        return jxAssessBzcjZgMapper.insert(jxAssessBzcjZg);
    }

    @Override
    public Integer deleteByYearAndMonth(Integer assessYear, Integer assessMonth) {

        return jxAssessBzcjZgMapper.deleteByYearAndMonth(assessYear, assessMonth);
    }
}
